package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 秒杀管理业务对象 p_store_seckill_manger
 *
 * @author ruoyi
 * @date 2022-08-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("秒杀管理业务对象")
public class PStoreSeckillMangerBo extends BaseEntity {

    /**
     *
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 秒杀名称
     */
    @ApiModelProperty(value = "秒杀名称", required = true)
    @NotBlank(message = "秒杀名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 秒杀开始时间段
     */
    @ApiModelProperty(value = "秒杀开始时间段", required = true)
    @NotNull(message = "秒杀开始时间段不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long startTime;

    /**
     * 秒杀结束时间段
     */
    @ApiModelProperty(value = "秒杀结束时间段", required = true)
    @NotNull(message = "秒杀结束时间段不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long endTime;

    /**
     * 主图
     */
    @ApiModelProperty(value = "主图", required = true)
    @NotBlank(message = "主图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String img;

    /**
     * 轮播图
     */
    @ApiModelProperty(value = "轮播图", required = true)
    @NotBlank(message = "轮播图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String silderImgs;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序", required = true)
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;

    /**
     * 状态 0=关闭 1=开启
     */
    @ApiModelProperty(value = "状态 0=关闭 1=开启", required = true)
    @NotNull(message = "状态 0=关闭 1=开启不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

}
